/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2008, 2009, 2010.

	This file is part of the Maxsi Library.

	Maxsi Library is free software: you can redistribute it and/or modify it
	under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi Library is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
	License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Library. If not, see <http://www.gnu.org/licenses/>.

	Maxsi Library
	A powerful Cross-Platform C++ General Purpose Library that allows you to
	efficiently create high-performance and reliable applications.

	MaxsiComDlg.h
	Common dialogs!

******************************************************************************/

#ifndef MaxsiComDlg_H
#define MaxsiComDlg_H

#include "MaxsiComDlgResource.h"

BeginMaxsiNamespace

LINK	char*				OpenFileDialogA(HINSTANCE Instance, HWND Owner, OPENFILENAMEA*	OpenFileName = 0);
LINK	char*				SaveFileDialogA(HINSTANCE Instance, HWND Owner, OPENFILENAMEA*	OpenFileName = 0);
LRESULT CALLBACK			ComDlg32DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
BOOL	NEAR		PASCAL	TestNotify(HWND hDlg, LPOFNOTIFYA pofn);
		void				ProcessCDError(DWORD dwErrorCode, HWND hWnd);

typedef struct _MYDATA
{
	char szTest1[MAX_PATH];		// a test buffer containing the file selected
	char szTest2[MAX_PATH];       // a test buffer containing the file path
} MYDATA, FAR * LPMYDATA;

EndMaxsiNamespace

#endif
